import 'package:architecture/os_size.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../../../widgets/text_button.dart';
import 'flutter_skill_controller.dart';

class FlutterSkillPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return GetBuilder<FlutterSkillController>(
        init: FlutterSkillController(),
        builder: (controller) {
          return Scaffold(
              appBar: AppBar(title: Text('flutter小技巧')),
              body: Container(
                  margin: EdgeInsets.only(top: 20, left: 20, right: 20),
                  height: windowHeight,
                  child: Wrap(
                      alignment: WrapAlignment.start,
                      crossAxisAlignment: WrapCrossAlignment.start,
                      spacing: 20,
                      runSpacing: 20,
                      children: [
                        MyTextButton(
                          text: "利用Shader实现粒子效果",
                          confirm: () {},
                        ),
                      ])));
        });
  }
}
